<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <title>Fluenty Survey</title>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      }
      body {
        background-color: #fff;
        color: #0f4c81;
        display: flex;
        min-height: 100vh;
        flex-direction: column;
        max-width: 600px;
        margin: 0 auto;
      }
      .container {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        justify-content: flex-start;
      }

      /* Header and Navigation */
      .header {
        width: 100%;
        display: flex;
        align-items: center;
        margin-bottom: 40px;
        position: relative;
      }
      .back-button {
        position: absolute;
        left: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        color: #555;
      }
      .progress-bar {
        width: 100%;
        height: 8px;
        background-color: #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
        margin-left: 50px;
      }
      .progress-fill {
        height: 100%;
        width: 95%;
        background-color: #4991ef;
        border-radius: 4px;
      }

      /* Content */
      .content {
        width: 100%;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .title {
        font-size: 32px;
        font-weight: 700;
        color: #0f4c81;
        margin-bottom: 20px;
        text-align: center;
        line-height: 1.3;
      }
      .score {
        font-size: 48px;
        font-weight: 700;
        color: #4991ef;
        margin-bottom: 40px;
        text-align: center;
      }

      /* Level Gauge */
      .level-gauge {
        width: 100%;
        margin-bottom: 40px;
      }
      .gauge-bar {
        position: relative;
        height: 12px;
        background: linear-gradient(to right, #ff4444, #ffaa33, #aadd33, #33bbee, #6688ff);
        border-radius: 6px;
        margin: 15px 0 30px;
      }
      .gauge-marker {
        position: absolute;
        top: -8px;
        left: 85px; /* Positioned at beginner level (about 603 words) */
        width: 28px;
        height: 28px;
        background-color: #4991ef;
        border: 5px solid white;
        border-radius: 50%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        transform: translateX(-50%);
      }
      .gauge-marker-start {
        position: absolute;
        top: 0;
        left: 0;
        width: 12px;
        height: 12px;
        background-color: #ff4444;
        border-radius: 50%;
      }
      .level-labels {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
      }
      .word-count-labels {
        display: flex;
        justify-content: space-between;
      }
      .level-label,
      .word-count {
        font-size: 16px;
        font-weight: 600;
        color: #555;
      }

      /* Results Box */
      .results-box {
        width: 100%;
        background-color: #f0f7ff;
        border-radius: 16px;
        padding: 30px;
        margin-bottom: 40px;
      }
      .results-title {
        font-size: 24px;
        font-weight: 700;
        color: #0f4c81;
        margin-bottom: 15px;
      }
      .results-text {
        font-size: 16px;
        line-height: 1.6;
        color: #333;
      }
      .emoji {
        font-size: 22px;
        vertical-align: middle;
      }

      /* Continue Button */
      .continue-button {
        width: 100%;
        padding: 18px;
        background-color: #4991ef;
        color: white;
        border: none;
        border-radius: 16px;
        font-size: 18px;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.2s ease;
        position: fixed;
        bottom: 20px;
        max-width: 560px;
      }
      .continue-button:hover {
        background-color: #3a7fd4;
      }

      @media (max-width: 480px) {
        .title {
          font-size: 28px;
        }
        .score {
          font-size: 42px;
        }
        .results-title {
          font-size: 22px;
        }
        .level-label,
        .word-count {
          font-size: 14px;
        }
      }
    </style>
  </head>
  <body>
    <div class="container">
      <!-- Header with back button and progress bar -->
      <div class="header">
        <button class="back-button">
          <span class="material-icons">arrow_back</span>
        </button>
        <div class="progress-bar">
          <div class="progress-fill"></div>
        </div>
      </div>

      <!-- Main content -->
      <div class="content">
        <h1 class="title">Your vocabulary test result:</h1>
        <div class="score">603 words</div>

        <!-- Level gauge -->
        <div class="level-gauge">
          <div class="word-count-labels">
            <span class="word-count">100</span>
            <span class="word-count">2575</span>
            <span class="word-count">5050</span>
            <span class="word-count">7525</span>
            <span class="word-count">10000</span>
          </div>
          <div class="gauge-bar">
            <div class="gauge-marker-start"></div>
            <div class="gauge-marker"></div>
          </div>
          <div class="level-labels">
            <span class="level-label">Beginner</span>
            <span class="level-label">Elementary</span>
            <span class="level-label">Intermediate</span>
            <span class="level-label">Upper Intermediate</span>
            <span class="level-label">Advanced</span>
          </div>
        </div>

        <!-- Results box -->
        <div class="results-box">
          <h2 class="results-title">Estimated Level: Beginner</h2>
          <p class="results-text">
            Starting out can feel tough, but it's totally doable with a solid plan. <span class="emoji">💪</span> We'll
            focus on building your vocabulary step by step, making sure you get the basics down for a meaningful
            transformation. <span class="emoji">🚀</span>
          </p>
        </div>
      </div>

      <!-- Continue button -->
      <button class="continue-button">Continue</button>
    </div>

    <script>
      document.addEventListener('DOMContentLoaded', function () {
        const backButton = document.querySelector('.back-button')
        const continueButton = document.querySelector('.continue-button')

        // Back button handler
        backButton.addEventListener('click', function () {
          window.history.back()
        })

        // Continue button handler
        continueButton.addEventListener('click', function () {
          // Navigate to next page
          window.location.href = 'yourName.html'
        })
      })
    </script>
  </body>
</html>
